import request from '@/utils/request'


// 查询盘点任务列表
export function listMyStock(query) {
  return request({
    url: '/asset/stock/my',
    method: 'get',
    params: query
  })
}


// 查询盘点任务列表
export function listStock(query) {
  return request({
    url: '/asset/stock/list',
    method: 'get',
    params: query
  })
}

// 查询盘点任务详细
export function getStock(id) {
  return request({
    url: '/asset/stock/' + id,
    method: 'get'
  })
}

// 新增盘点任务
export function addStock(data) {
  return request({
    url: '/asset/stock',
    method: 'post',
    data: data
  })
}

// 修改盘点任务
export function updateStock(data) {
  return request({
    url: '/asset/stock',
    method: 'put',
    data: data
  })
}

// 删除盘点任务
export function delStock(id) {
  return request({
    url: '/asset/stock/' + id,
    method: 'delete'
  })
}

// 提交盘点任务
export function submitStock(id) {
  return request({
    url: '/asset/stock/submit/' + id,
    method: 'get'
  })
}

